/**
 * 
 */
package com.alstudio.view.viewpagerextend;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.loovee.imaohu.R;

/**
 * @author alonso lee
 *
 */
public class BaseFixedTabView extends RelativeLayout {

	LayoutInflater inflater;
	// 底部色织
	private View bottom_line;
	// 文字说明
	public TextView txt,num;
	
	/**
	 * @param context
	 */
	public BaseFixedTabView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.base_fixed_tab_layout, this);
		initView();
	}
	
	/**
	 * 
	 */
	public BaseFixedTabView(Context context, AttributeSet attrs) {
		// TODO Auto-generated constructor stub
		super(context, attrs);
		inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.base_fixed_tab_layout, this);
		initView();
	}
	
	private void initView(){
		bottom_line = findViewById(R.id.bottom_line);
		txt = (TextView) findViewById(R.id.txt);
		num = (TextView) findViewById(R.id.num);
	}

}
